scr=$(wildcard *.c)
obj=$(patsubst %.c,%.o,$(scr))


main:$(obj)
	gcc $^ -o $@

%.o:%.c
	gcc -c $< -o $@


.PHONY clean:
	rm -f $(obj) main


